package com.wdh.kjs.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.wdh.kjs.MainActivity;
import com.wdh.kjs.R;

/**
 * Created by feifei on 2016/7/9.
 */
public class RegisterSuccessActivity extends BaseTopActivity implements View.OnClickListener {
    private Button touzixiangmu;
    private Button shiminrenzheng;
    private Intent intent;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.register_success);
        initview();
        initwidge();
    }

    private void initwidge() {
        touzixiangmu.setOnClickListener(this);
        shiminrenzheng.setOnClickListener(this);
    }

    private void initview() {
        touzixiangmu = (Button) findViewById(R.id.touzixiangmu);
        shiminrenzheng = (Button) findViewById(R.id.shiminrenzheng);
    }

    @Override
    public void onClick(View v) {
switch (v.getId()) {
    case R.id.shiminrenzheng:
        intent = new Intent(this, RealNameAuthActivity.class);
        startActivity(intent);
break;

    case R.id.touzixiangmu:
        intent = new Intent(this, MainActivity.class);
        startActivity(intent);
        break;
}
    }
}
